<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header');?>
<form name="myform" action="?m=<?=ROUTE_M;?>&c=<?=ROUTE_C;?>&a=listorder" method="post">
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="4%"  align="left">ID</th>
            <th width="12%">项目</th>
            <th width="12%">分组</th>
            <th width="12%">编码</th>
            <th width="12%">创建时间</th>
            <th width="20%"><?php echo L('posid_operation');?></th>
            </tr>
        </thead>
    <tbody>
 <?php 
 
if(is_array($list)){
	foreach($list as $v){
?>   
	<tr>
	<td  align="left"><?php echo $v['id']?></td>
	<td  align="center"><?php echo $v['sid']?$svn_names[$v['sid']]['name']:'公共'?></td>
	<td  align="center"><?php echo $v['name']?></td>
	<td align="center"><?php echo $v['code']?></td>
	<td align="center"><?php echo date('Y-m-d H:i',$v['created'])?></td>
	<td align="center">
	  
	  <a href="javascript:edit(<?php echo $v['id']?>, '<?php echo new_addslashes($v['name'])?>')"><?php echo L('edit')?></a> | 
	  
	  <a href="javascript:confirmurl('?m=<?php echo ROUTE_M;?>&c=<?php echo ROUTE_C;?>&a=delete&id=<?php echo $v['id']?>', '是否删除？')"><?php echo L('delete')?></a>
	  
	  
	  
	  </td>
	</tr>
<?php 
	}
}
?>
    </tbody>
    </table>
  
    <div class="btn"></div>  </div>

 <div id="pages"> <?php echo $pages?></div>
</div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
<!--
	window.top.$('#display_center_id').css('display','none');
	function edit(id, name) {
	window.top.art.dialog({title:'<?php echo L('edit')?>--'+name, id:'edit', iframe:'?m=<?php echo ROUTE_M;?>&c=<?php echo ROUTE_C;?>&a=edit&id='+id ,width:'500px',height:'300px'}, 	function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
	var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
}


//-->
</script>